/*    */ package com.zimbra.cs.filter.jsieve;
/*    */ 
/*    */ import com.zimbra.cs.filter.ZimbraMailAdapter;
/*    */ import com.zimbra.cs.mime.ParsedMessage;
/*    */ import org.apache.jsieve.Arguments;
/*    */ import org.apache.jsieve.SieveContext;
/*    */ import org.apache.jsieve.mail.MailAdapter;
/*    */ import org.apache.jsieve.tests.AbstractTest;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AttachmentTest
/*    */   extends AbstractTest
/*    */ {
/*    */   protected boolean executeBasic(MailAdapter mail, Arguments arguments, SieveContext context)
/*    */   {
/* 36 */     if (!(mail instanceof ZimbraMailAdapter))
/* 37 */       return false;
/* 38 */     ParsedMessage pm = ((ZimbraMailAdapter)mail).getParsedMessage();
/* 39 */     if (pm == null) {
/* 40 */       return false;
/*    */     }
/* 42 */     return pm.hasAttachments();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/filter/jsieve/AttachmentTest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */